// 所有的面经相关的请求，都放这里

import request from '@/utils/request'

// 获取面经列表数据
export function articleListAPI (params) {
  return request.get('/admin/interview/query', {
    params: params
  })
  // return request({
  //   url: '/admin/interview/query',
  //   method: 'GET',
  //   params: params
  // })
}

// 添加面经API
export function createArticleAPI (data) {
  return request.post('/admin/interview/create', data)
}

// 删除面经API
export function removeArticleAPI (id) {
  return request({
    method: 'DELETE',
    url: '/admin/interview/remove',
    data: {
      id: id
    }
  })
}
